<template>
  <div>
    <ul>
      <li v-for="item in arr" :key="item">
        {{ item }}
      </li>
    </ul>
    <button @click="zouyizou">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["小红", "消灭", "晓东", "小马"],
    };
  },
  methods: {
    zouyizou() {
      this.arr.push(this.arr[0]);
      this.arr.splice(0, 1);
    },
  },
};
</script>

<style>
</style>